From 8cb0674b6ba86156b2be8d8016b71f37c3f50ae4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 11 Mar 2006 02:13:11 +0000 Subject: [PATCH] Clean up exported symbols --- modules/engines/pixbuf/ChangeLog | 5 +++++ modules/engines/pixbuf/pixbuf-draw.c | 6 +++--- modules/engines/pixbuf/pixbuf-rc-style.h | 4 ++-- modules/engines/pixbuf/pixbuf-render.c | 2 +- modules/engines/pixbuf/pixbuf-style.h | 4 ++-- modules/engines/pixbuf/pixbuf.h | 14 +++++++------- 6 files changed, 20 insertions(+), 15 deletions(-) diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog index 3f524b335e..78b24de080 100644 --- a/modules/engines/pixbuf/ChangeLog +++ b/modules/engines/pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2006-03-10 Matthias Clasen + + * Don't export any internal functions or variables, + only the theme engine abi. + 2006-03-10 Matthias Clasen * pixbuf-draw.c (draw_extension): Remove suspicious diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c index fcaae96789..ebf902ead8 100644 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ b/modules/engines/pixbuf/pixbuf-draw.c @@ -1064,11 +1064,11 @@ draw_resize_grip (GtkStyle *style, GType pixbuf_type_style = 0; -void -pixbuf_style_register_type (GTypeModule *module) +void +pixbuf_style_register_type (GTypeModule *module) { static const GTypeInfo object_info = - { + { sizeof (PixbufStyleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, diff --git a/modules/engines/pixbuf/pixbuf-rc-style.h b/modules/engines/pixbuf/pixbuf-rc-style.h index 53d93b794e..7cc4331de8 100644 --- a/modules/engines/pixbuf/pixbuf-rc-style.h +++ b/modules/engines/pixbuf/pixbuf-rc-style.h @@ -25,7 +25,7 @@ typedef struct _PixbufRcStyle PixbufRcStyle; typedef struct _PixbufRcStyleClass PixbufRcStyleClass; -extern GType pixbuf_type_rc_style; +extern GType pixbuf_type_rc_style G_GNUC_INTERNAL; #define PIXBUF_TYPE_RC_STYLE pixbuf_type_rc_style #define PIXBUF_RC_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PIXBUF_TYPE_RC_STYLE, PixbufRcStyle)) @@ -46,4 +46,4 @@ struct _PixbufRcStyleClass GtkRcStyleClass parent_class; }; -void pixbuf_rc_style_register_type (GTypeModule *module); +void pixbuf_rc_style_register_type (GTypeModule *module) G_GNUC_INTERNAL; diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c index 916bbd87ca..8ce9d7422c 100644 --- a/modules/engines/pixbuf/pixbuf-render.c +++ b/modules/engines/pixbuf/pixbuf-render.c @@ -658,7 +658,7 @@ theme_pixbuf_set_stretch (ThemePixbuf *theme_pb, theme_pixbuf_compute_hints (theme_pb); } -GdkPixbuf * +static GdkPixbuf * pixbuf_cache_value_new (gchar *filename) { GError *err = NULL; diff --git a/modules/engines/pixbuf/pixbuf-style.h b/modules/engines/pixbuf/pixbuf-style.h index 75fc0fd1ad..f295080781 100644 --- a/modules/engines/pixbuf/pixbuf-style.h +++ b/modules/engines/pixbuf/pixbuf-style.h @@ -25,7 +25,7 @@ typedef struct _PixbufStyle PixbufStyle; typedef struct _PixbufStyleClass PixbufStyleClass; -extern GType pixbuf_type_style; +extern GType pixbuf_type_style G_GNUC_INTERNAL; #define PIXBUF_TYPE_STYLE pixbuf_type_style #define PIXBUF_STYLE(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PIXBUF_TYPE_STYLE, PixbufStyle)) @@ -44,6 +44,6 @@ struct _PixbufStyleClass GtkStyleClass parent_class; }; -void pixbuf_style_register_type (GTypeModule *module); +void pixbuf_style_register_type (GTypeModule *module) G_GNUC_INTERNAL; diff --git a/modules/engines/pixbuf/pixbuf.h b/modules/engines/pixbuf/pixbuf.h index e0289955aa..7f788748cd 100644 --- a/modules/engines/pixbuf/pixbuf.h +++ b/modules/engines/pixbuf/pixbuf.h @@ -188,18 +188,18 @@ struct _ThemeImage }; -ThemePixbuf *theme_pixbuf_new (void); -void theme_pixbuf_destroy (ThemePixbuf *theme_pb); +ThemePixbuf *theme_pixbuf_new (void) G_GNUC_INTERNAL; +void theme_pixbuf_destroy (ThemePixbuf *theme_pb) G_GNUC_INTERNAL; void theme_pixbuf_set_filename (ThemePixbuf *theme_pb, - const char *filename); -GdkPixbuf * theme_pixbuf_get_pixbuf (ThemePixbuf *theme_pb); + const char *filename) G_GNUC_INTERNAL; +GdkPixbuf * theme_pixbuf_get_pixbuf (ThemePixbuf *theme_pb) G_GNUC_INTERNAL; void theme_pixbuf_set_border (ThemePixbuf *theme_pb, gint left, gint right, gint top, - gint bottom); + gint bottom) G_GNUC_INTERNAL; void theme_pixbuf_set_stretch (ThemePixbuf *theme_pb, - gboolean stretch); + gboolean stretch) G_GNUC_INTERNAL; void theme_pixbuf_render (ThemePixbuf *theme_pb, GdkWindow *window, GdkBitmap *mask, @@ -209,7 +209,7 @@ void theme_pixbuf_render (ThemePixbuf *theme_pb, gint dest_x, gint dest_y, gint dest_width, - gint dest_height); + gint dest_height) G_GNUC_INTERNAL; -- 2.30.2